#ifndef _SOUND_FB_H
#define _SOUND_FB_H

#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>

//framebuffer 函数
int      fb_open(char *fb_device);
int      fb_close(int fd);
int      fb_display_open(int fd);
int      fb_display_close(int fd);
int      fb_stat(int fd, int *width, int *height, int *depth);
//设置显存页
int      fb_setpage(int fd, int fbn);
void    *fb_mmap(int fd, unsigned int screensize);
int     fb_munmap(void *start, size_t length);
int     fb_pixel(/*unsigned char *fbmem, */int width, int height,
						 int x, int y, unsigned short color, int PageNo);
void 	fb_line(int start_x,int start_y,int end_x,int end_y, unsigned short color, int PageNo);
#endif
